import 'dart:ui';

import 'package:flutter/material.dart';
import 'dart:async';
class NewsPage extends StatefulWidget{
//  @override
//  State<StatefulWidget> createState() {
//    // TODO: implement createState
//    return new _loadingState();
//  }
  /**
   *  该写法与上面的写法等价的
   */
  @override
  NewsPageState createState() =>NewsPageState();



}
class NewsPageState extends State<NewsPage>{
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Text('news');
  }
}